import 'package:get/get.dart';
import 'package:getx/router/router_names.dart';
import 'package:shared_preferences/shared_preferences.dart';

class SettingViewModel extends GetxController {
  ///退出登录
  void logout() {
    var preferences = Get.find<SharedPreferences>();
    preferences.clear();
    Get.offAllNamed(RouterNames.login);
  }
}
